﻿namespace Ipmce.RemoteVoting.Common.Tools.CardReader.ImageParsing
{
	class ImageInformation : BdbData
	{
		public EnumFaceImageType FaceImageType
		{
			get { return (EnumFaceImageType)GetByte(0); }
			set { SetByte(0, (byte)value); }
		}

		public ImageType ImageDataType
		{
			get { return (ImageType)GetByte(1); }
			set { SetByte(1, (byte)value); }
		}

		public int Width
		{
			get { return GetInt(2, 2); }
			set { SetInt(2, 2, value); }
		}

		public int Height
		{
			get { return GetInt(4, 2); }
			set { SetInt(4, 2, value); }
		}

		public ImageInformation() : base(12) { }
        
		public ImageInformation(EnumFaceImageType faceImageType, ImageType imageDataType, int width, int height) : base(12) 
		{
			FaceImageType = faceImageType;
			ImageDataType = imageDataType;
			Width = width;
			Height = height;
		}
	}
}